//渲染普通表头
function renderDateHead(thElem, col) {
    thElem.className = 'et-date-th';
    thElem.innerText = col.title;
}

//渲染普通网格
function renderDateBody(tdElem, col, rawData) {
    let inputElem = document.createElement('input');
    inputElem.value = rawData[col.field];
    inputElem.type = col.type;
    tdElem.appendChild(inputElem);
    //渲染可编辑
    editable(inputElem, col, rawData);
}

//控件编辑
function editable(inputElem, col, rawData) {
    if (col.editable) {//可编辑
      
    } else {//不可编辑
        inputElem.readOnly = true;
    }
}

export { renderDateHead, renderDateBody };